﻿@model IEnumerable<ViVa.ActiveDirectory.ADEntry>

@{
    ViewBag.Title = "ZoekADUser";
    Page.Title = "Zoek AD User";
    ViewData["SecurityLevel"] = "isHelpdesk";
}



	<div class="portlet">

		<div class="portlet-content">
@Html.Partial("partialViews/_ZoekUserForm")
        </div>
	</div>



@if (IsPost)
{
    if (@Model != null)
    {
<br />
<table class="form_table">
    <tr>
        <th>
            Name
        </th>
        <th>
            Email
        </th>
        <th>
            SamAccountName
        </th>
        <th>
            Title
        </th>
        <th>
            Location
        </th>
        <th>
            Telephonenumber
        </th>
        <th>
            EmployeeID
        </th>
    </tr>

@foreach (var item in Model)
{
    <tr>
        <td>
            @Html.ActionLink(@item.Name, "EditUser", new { SamAccountName = item.SamAccountName })

        </td>
        <td>
            @item.Email
        </td>
        <td>
            @item.SamAccountName
        </td>
        <td>
            @item.Title
        </td>
        <td>
            @item.PhysicalDeliveryOfficeName
        </td>
        <td>
            @item.TelephoneNumber
        </td>
        <td>
            @item.EmployeeID
        </td>
    </tr>
}

</table>

    }
}